<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <body>
        <div class="col-left col-xs-6 col-md-3">
            <ul class="menu-left">
                <li><a href="loadMessageHome.do">Home</a></li>
                    <li class="bg-bottom"></li>
                    <%
                    if(null != session.getAttribute("isUser")){
                    %>
                    <li><a href="loadMailStudent.do">Mail Page</a></li>
                    <li class="bg-bottom"></li>
                    <li><a href="loadCousesNameForRegister.do">Admission Form</a></li>
                    <li class="bg-bottom"></li>
                    <li class="bg-bottom"></li>                    
                    <li><a href="loadStudentDetails.do">Student Details</a></li>
                    <li class="bg-bottom"></li>
                    <% }if(null != session.getAttribute("isStaff")){ %>
                    <li><a href="loadMailStaff.do">Mail Page</a></li>
                    <li class="bg-bottom"></li>
                    <li><a href="loadStaffDetails.do">Staff Details</a></li>
                    <li class="bg-bottom"></li>
                    <li class="bg-bottom"></li>                    
                    <li><a href="loadAllStudent.do">View All Student</a></li>
                    <li class="bg-bottom"></li>
                    <li><a href="loadAllCourses.do">View All Courses</a></li>
                    <li class="bg-bottom"></li>
                    <% } %>
                    <li><a href="loadMessage.do">Events</a></li>
                    <li class="bg-bottom"></li>
                    <li><a href="contactUs.jsp">Contact us</a></li>
                    <li class="bg-bottom"></li>
            </ul>           
            <div class="col-upcoming-event">
                    <h2>Upcoming Events</h2>
                    <ul class="col-upcoming-event-content">
                        <% if(null != session.getAttribute("user")){ %>
                        <logic:iterate id="messageitem" name="MessageBroads" property="messageBroads">
                            <li><a href="loadMessageDetail.do?messID=${messageitem.messageId}">${messageitem.title}</a></li>
                        </logic:iterate>
                            <% } %>
                    </ul>
            </div>
           
        </div>
    </body>
</html>
        
